﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager" %>
<%@page pageEncoding="UTF-8"%>
<!doctype html>
<html><HEAD><TITLE>青鸟租房 - 用户登录</TITLE>
  <meta charset="UTF-8"/>
  <base href="${pageContext.request.contextPath}/"/>
  <HEAD><TITLE>青鸟租房 - 首页</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
    <LINK rel=stylesheet type=text/css href="css/style.css">
    <link rel="stylesheet" href="webjars/css/bootstrap.css">
<META name=GENERATOR content="MSHTML 8.00.7601.17514"></HEAD>
<BODY>
<DIV id=header class=wrap>
<DIV id=logo><IMG src="../images/logo.gif"></DIV></DIV>
<DIV id=navbar class=wrap>
<DL class="search clearfix">
  <FORM id=sform method="get" action="index">
  <DT>
  <UL>
    <LI class=bold>房屋信息</LI>
    <LI>标题：<INPUT class=text type=text name="title" value="${param.title}"> <LABEL class=ui-blue><INPUT value="搜索房屋" type="submit" ></LABEL>
    </LI></UL></DT>

  <DD>
  <UL>
    <LI class=first>价格 </LI>
    <LI><SELECT name="price"> <OPTION selected value="">不限</OPTION> <OPTION
      value="0-2000">2000以下</OPTION> <OPTION value="2000-5000">2000—5000</OPTION>
      <OPTION value="5000-1000000">5000以上</OPTION></SELECT> </LI></UL></DD>


  <DD>
  <UL>
    <LI class=first>房屋位置</LI>
    <LI><SELECT id=street name="street.id"> <OPTION selected
      value="">不限</OPTION>
      <OPTION value="1" ${param["street.id"]==1?"selected":""}>人民路</OPTION>
      <OPTION value="2" ${param["street.id"]==2?"selected":""}>明珠路</OPTION>
      <OPTION value="3" ${param["street.id"]==3?"selected":""}>学院北路</OPTION>
    </SELECT> </LI></UL></DD>
  <DD>
  <UL>
    <LI class=first>房型</LI>
    <LI><SELECT name="type.id">
      <OPTION selected value="">不限</OPTION>
      <OPTION value="1001" ${param["type.id"]==1001?"selected":""}>一室一厅</OPTION>
      <OPTION value="1002" ${param["type.id"]==1002?"selected":""}>一室两厅</OPTION> </SELECT>
  </LI></UL></DD>
<%--  <DD>
  <UL>
    <LI class=first>面积 </LI>
    <LI><SELECT name=floorage> <OPTION selected value="">不限</OPTION> <OPTION 
      value=0-40>40以下</OPTION> <OPTION value=40-500>40-500</OPTION> <OPTION 
      value=500-1000000>500以上</OPTION></SELECT> </LI></UL></DD>--%></FORM></DL></DIV>
<DIV class="main wrap">
<TABLE class=house-list>
  <TBODY>
  <c:forEach var="h" items="${pager.rows}">
    <TR>
      <TD class=house-thumb><span><A href="vip/details.htm" target="_blank"><img src="../images/thumb_house.gif" width="100" height="75" alt=""></a></span></TD>
      <TD>
        <DL>
          <DT><A href="vip/details.htm" target="_blank">${h.title}</A></DT>
          <DD>海淀区中关村大街,346平米<BR>联系方式：3456 </DD></DL></TD>
      <TD class=house-type>一室一厅</TD>
      <TD class=house-price><SPAN>346.0</SPAN>元/月</TD></TR>
  </c:forEach>

  </TBODY></TABLE>
<DIV>
  <pg:pager url="index" items="${pager.total}" maxPageItems="5" export="curr=pageNumber">
    <pg:param name="title" value="${param.title}"/>
    <pg:param name="type.id" value="${param['type.id']}"/>
    <pg:param name="street.id"  value="${param['street.id']}"/>
    <ul class="pagination pull-right">
      <pg:first>
        <li><a href="${pageUrl}">首页</a></li>
      </pg:first>
      <pg:prev>
        <li><a href="${pageUrl}">上一页</a></li>
      </pg:prev>
      <pg:pages>
        <li class="${curr==pageNumber?'active':''}"><a href="${pageUrl}">${pageNumber}</a></li>
      </pg:pages>
      <pg:next>
        <li><a href="${pageUrl}">下一页</a></li>
      </pg:next>
      <pg:last>
        <li><a href="${pageUrl}">尾页</a></li>
      </pg:last>
    </ul>
  </pg:pager>

</DIV></DIV>
<DIV id=footer class=wrap>
<DL>
  <DT>青鸟租房 © 2010 北大青鸟 京ICP证1000001号</DT>
  <DD>关于我们 · 联系方式 · 意见反馈 · 帮助中心</DD></DL></DIV></BODY></HTML>
